/*
 * XML Type:  WireTransferRequestMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.WireTransferRequestMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML WireTransferRequestMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class WireTransferRequestMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractRequestMessageSetImpl implements net.ofx.types.x2003.x04.WireTransferRequestMessageSetV1
{
    
    public WireTransferRequestMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WIRETRNRQ$0 = 
        new javax.xml.namespace.QName("", "WIRETRNRQ");
    private static final javax.xml.namespace.QName WIRESYNCRQ$2 = 
        new javax.xml.namespace.QName("", "WIRESYNCRQ");
    
    
    /**
     * Gets array of all "WIRETRNRQ" elements
     */
    public net.ofx.types.x2003.x04.WireTransactionRequest[] getWIRETRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIRETRNRQ$0, targetList);
            net.ofx.types.x2003.x04.WireTransactionRequest[] result = new net.ofx.types.x2003.x04.WireTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "WIRETRNRQ" element
     */
    public net.ofx.types.x2003.x04.WireTransactionRequest getWIRETRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionRequest)get_store().find_element_user(WIRETRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "WIRETRNRQ" element
     */
    public int sizeOfWIRETRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRETRNRQ$0);
        }
    }
    
    /**
     * Sets array of all "WIRETRNRQ" element
     */
    public void setWIRETRNRQArray(net.ofx.types.x2003.x04.WireTransactionRequest[] wiretrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(wiretrnrqArray, WIRETRNRQ$0);
        }
    }
    
    /**
     * Sets ith "WIRETRNRQ" element
     */
    public void setWIRETRNRQArray(int i, net.ofx.types.x2003.x04.WireTransactionRequest wiretrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionRequest)get_store().find_element_user(WIRETRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(wiretrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "WIRETRNRQ" element
     */
    public net.ofx.types.x2003.x04.WireTransactionRequest insertNewWIRETRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionRequest)get_store().insert_element_user(WIRETRNRQ$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "WIRETRNRQ" element
     */
    public net.ofx.types.x2003.x04.WireTransactionRequest addNewWIRETRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.WireTransactionRequest)get_store().add_element_user(WIRETRNRQ$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "WIRETRNRQ" element
     */
    public void removeWIRETRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRETRNRQ$0, i);
        }
    }
    
    /**
     * Gets array of all "WIRESYNCRQ" elements
     */
    public net.ofx.types.x2003.x04.WireSyncRequest[] getWIRESYNCRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(WIRESYNCRQ$2, targetList);
            net.ofx.types.x2003.x04.WireSyncRequest[] result = new net.ofx.types.x2003.x04.WireSyncRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "WIRESYNCRQ" element
     */
    public net.ofx.types.x2003.x04.WireSyncRequest getWIRESYNCRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.WireSyncRequest)get_store().find_element_user(WIRESYNCRQ$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "WIRESYNCRQ" element
     */
    public int sizeOfWIRESYNCRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRESYNCRQ$2);
        }
    }
    
    /**
     * Sets array of all "WIRESYNCRQ" element
     */
    public void setWIRESYNCRQArray(net.ofx.types.x2003.x04.WireSyncRequest[] wiresyncrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(wiresyncrqArray, WIRESYNCRQ$2);
        }
    }
    
    /**
     * Sets ith "WIRESYNCRQ" element
     */
    public void setWIRESYNCRQArray(int i, net.ofx.types.x2003.x04.WireSyncRequest wiresyncrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.WireSyncRequest)get_store().find_element_user(WIRESYNCRQ$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(wiresyncrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "WIRESYNCRQ" element
     */
    public net.ofx.types.x2003.x04.WireSyncRequest insertNewWIRESYNCRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.WireSyncRequest)get_store().insert_element_user(WIRESYNCRQ$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "WIRESYNCRQ" element
     */
    public net.ofx.types.x2003.x04.WireSyncRequest addNewWIRESYNCRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.WireSyncRequest)get_store().add_element_user(WIRESYNCRQ$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "WIRESYNCRQ" element
     */
    public void removeWIRESYNCRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRESYNCRQ$2, i);
        }
    }
}
